package com.cskaoyan.mapper;

import com.cskaoyan.bean.MarketCategory;
import com.cskaoyan.bean.MarketCategoryExample;
import com.cskaoyan.bean.vo.AdminCategoryL1VO;
import com.cskaoyan.bean.vo.AdminCategoryVO;
import com.cskaoyan.bean.vo.AdminCategoryVO2;
import com.cskaoyan.bean.vo.BrandOfCatAndBrandVO;
import com.cskaoyan.bean.vo.CatOfCatAndBrandVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketCategoryMapper {
    long countByExample(MarketCategoryExample example);

    int deleteByExample(MarketCategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketCategory row);

    int insertSelective(MarketCategory row);

    List<MarketCategory> selectByExample(MarketCategoryExample example);

    MarketCategory selectByPrimaryKey(Integer id);

    List<AdminCategoryVO2> selectPicByprimaryKey(Integer pid);

    int updateByExampleSelective(@Param("row") MarketCategory row, @Param("example") MarketCategoryExample example);

    int updateByExample(@Param("row") MarketCategory row, @Param("example") MarketCategoryExample example);

    int updateByPrimaryKeySelective(MarketCategory row);

    int updateByPrimaryKey(MarketCategory row);

    List<AdminCategoryL1VO> selectL1ByPrimaryKey(Integer pid);

    List<CatOfCatAndBrandVO> selectIdAndNameCat();

    List<BrandOfCatAndBrandVO> selectIdAndNameCatByPid(@Param("id") Integer id);
}

